﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Class_KetNoi;

namespace GiaoDien
{
    public partial class uc_ChiTietKyLuat : DevExpress.XtraEditors.XtraUserControl
    {
        public uc_ChiTietKyLuat()
        {
            InitializeComponent();
        }
        KetNoi_KyLuat kn = new KetNoi_KyLuat();
        public void LoadDuLieu()
        {
            gridControl1.DataSource = kn.LoadDuLieu();
        } 
        private void uc_ChiTietKyLuat_Load(object sender, EventArgs e)
        {
            kn.connect();
            LoadDuLieu();
        }
        private void btnTimKiem_Click(object sender, EventArgs e)
        {
           gridControl1.DataSource=kn.TraCuu_TenKyLuat(txtNoiDung.Text);
        }


    }
}
